﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Services.Common
{
    public class ISMServiceResultErrorCodes
    {
        /*
         *  Common
         */
        public const int ERR_CODE_NO_ERROR = 1000;
        public const int ERR_CODE_ISM_TOKEN_ERROR = 1001;
        public const int ERR_CODE_WEIXIN_TOKEN_ERROR = 1002;
        public const int ERR_CODE_ISM_EXCEPTION_ERR = 1003;
        public const int ERR_CODE_ISM_UNKNOWN_ERR = 1004;
        public const int ERR_CODE_ISM_AUTHORIZERIGHTSFAIL = 1005;
        public const int ERR_CODE_ISM_DUMPLICATE_SHARE_CONTENT = 1006;
        /*
         *  ERR_CODE_USER
         */
        public const int ERR_CODE_USER_OPENID_EXISTS = 10006;
        public const int ERR_CODE_USER_OPENID_NOT_EXISTS = 10007;
        public const int ERR_CODE_USER_NOT_EXISTS = 10008;

        /*
         *  ERR_CODE_FRIEND
         */
        public const int ERR_CODE_FRIEND_TOO_MANY_ADDFRIEND_REQUEST = 20009;
        public const int ERR_CODE_FRIEND_RELATION_EXISTS = 20010;

        /*
         *  ERR_CODE_BLACKLIST
         */
        public const int ERR_CODE_USER_IS_ALREADY_BLOCKED = 30011;

        /*
         *  ERR_CODE_BIZ_LIKE
         */
        public const int ERR_CODE_BIZ_IS_ALREADY_LIKED = 40012;

        /*
         *  ERR_CODE_BIZ_COMMENT
         */
        public const int ERR_CODE_BIZ_DUMPLICATED_COMMENT = 50013;

        /*
         *  ERR_CODE_PRIVATE_MESSAGE
         */
        public const int ERR_CODE_PM_DUMPLICATED_PM = 60014;

        /*
         *  ERR_CODE_BUSINESS
         */
        public const int ERR_CODE_BUSINESS_DUMPLICATED_BUSINESS = 70015;

        /*
         *  ERR_CODE_FORM
         */
        public const int ERR_CODE_FORM_DUMPLICATED_FORM = 80016;
        public const int ERR_CODE_FORM_TOOMANY_SUBMITS = 80017;

        /*
         *  ERR_CODE_ACTIVITY
         */
        public const int ERR_CODE_ACTIVITY_ALREADY_SUBSCRIBED = 90018;
        public const int ERR_CODE_ACTIVITY_CANCELED = 90019;
        public const int ERR_CODE_ACTIVITY_SUB_FULL = 90020;

        /*
         *  ERR_CODE_GROUP 
         */
        public const int ERR_CODE_GROUP_GROUP_IS_ALREADY_EXISTS = 91020;
        public const int ERR_CODE_GROUP_GROUP_NOT_EXISTS = 91021;
        public const int ERR_CODE_GROUP_GROUP_JOIN_REQUEST_IS_ALREADY_PROCESSED = 91022;
        public const int ERR_CODE_GROUP_USER_IS_ALREADY_JOINED = 91023;

        /*
         *  ERR_CODE_TAGS
         */
        public const int ERR_CODE_TAG_DUMPLICATE_TAG = 92000;
    }
}
